package com.xd.core.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xd.core.system.dto.AddGroupDto;
import com.xd.core.system.entity.GroupInfo;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZX
 * @since 2024-07-25
 */
public interface IGroupInfoService extends IService<GroupInfo> {

    void addGroup(AddGroupDto addGroupDto);

    List<GroupInfo> findGroups(String groupName);

    void getChildIds(Integer groupId, List<Integer> groupIds, List<GroupInfo> groupInfos);

    void delGroup(Integer id);

    List<GroupInfo> updateGroupsTree(Integer userId);

    List<GroupInfo> groupDropDown();

    List<GroupInfo> dataPerDropDown();
}
